// app.js
App({
  onLaunch(options) {
    
    this.globalData.scene = options.scene;
    if(options.scene == '1154'){
      this.globalData.data = options.query.data;
      console.log(options);
    }
    // console.log(options);
    // 展示本地存储能力
    // const logs = wx.getStorageSync('logs') || []
    // logs.unshift(Date.now())
    // wx.setStorageSync('logs', logs)
    wx.getSystemInfo({
      success: e => {
        this.globalData.StatusBar = e.statusBarHeight;
        let custom = wx.getMenuButtonBoundingClientRect();
        this.globalData.Custom = custom;  
        this.globalData.CustomBar = custom.bottom + custom.top - e.statusBarHeight;
      }
    })
  },
  globalData: {
    scene: '',
    data: '',
    baseurl: "https://v.lwaly.com/20210712/m3u8.php",
    playurl: "https://v.lwaly.com/20210712/play.php",
    switchurl: "https://v.lwaly.com/20210712/switch.php",
  }
})
